<template>
  <a-card :bordered="false">
    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <a-form layout="inline">
        <a-row :gutter="24">
          <a-col :xl="6" :lg="7" :md="8" :sm="24" >
            <a-form-item label="流程编码">
              <a-input v-model="queryParam.processDefinitionId" placeholder="请输入流程编码"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24" >
            <a-form-item label="流程名称">
              <a-input v-model="queryParam.processDefinitionName" placeholder="请输入流程名称"/>
            </a-form-item>
          </a-col>
          <a-col :xl="6" :lg="7" :md="8" :sm="24">
            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button  type="primary" icon="search" @click="searchQuery">查询</a-button>
              <a-button type="primary" icon="reload" style="margin-left: 8px" @click="searchReset">重置</a-button>
            </span>
          </a-col>
        </a-row>
      </a-form>
    </div>

    <!-- table区域-begin -->
    <div>
      <a-table
        size="middle"
        bordered
        row-key="id"
        :columns="columns"
        :data-source="dataSource"
        :pagination="ipagination"
        :loading="loading"
        @change="handleTableChange"
      >
        <template slot="action" slot-scope="text, record">
          <a>签收</a>
          <a-divider type="vertical" />
          <a-dropdown>
            <a class="ant-dropdown-link">更多<a-icon type="down" /></a>
            <a-menu slot="overlay">
                <a-menu-item>
                    <a >编辑</a>
                </a-menu-item>
                <a-menu-item>
                    <a >详情</a>
                </a-menu-item>
                <a-menu-item>
                <a-popconfirm title="确定删除吗?">
                    <a>删除</a>
                </a-popconfirm>
              </a-menu-item>
            </a-menu>
          </a-dropdown>
        </template>
      </a-table>
    </div>
  </a-card>
</template>

<script>
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
export default {
  name: 'teamTask',
  components: {

  },
  mixins: [JeecgListMixin],
  computed: {

  },
  data() {
    return {
      columns: [
        {
          title: '#',
          dataIndex: '',
          key: 'rowIndex',
          width: 60,
          align: 'center',
          customRender: function(t, r, index) {
            return parseInt(index) + 1
          }
        },
        {
          title: '业务标题',
          align: 'center',
          dataIndex: 'bpmBizTitle'
        },
        {
          title: '流程编码',
          align: 'center',
          dataIndex: 'processDefinitionId'
        },
        {
          title: '任务ID',
          align: 'center',
          dataIndex: 'taskId'
        },
        {
          title: '流程名称',
          align: 'center',
          dataIndex: 'processDefinitionName'
        },
        {
          title: '流程实例',
          align: 'center',
          dataIndex: 'id'
        },
        {
          title: '发起人',
          align: 'center',
          dataIndex: 'processApplyUserName'
        },
        {
          title: '开始时间',
          align: 'center',
          dataIndex: 'taskBeginTime'
        },
        {
          title: '结束时间',
          align: 'center',
          dataIndex: 'taskEndTime'
        },
        {
          title: '当前环节',
          align: 'center',
          dataIndex: 'taskName'
        }
      ]
    }
  },
  created() {

  },
  methods: {

  }
}
</script>
<style scoped>
  @import '~@assets/less/common.less';

</style>
